package c.h.a.m0;

import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import b.b.c.f;
import b.b.c.f.a;
import c.h.a.b0.m;
import c.h.a.x.r;
import java.io.File;

/* compiled from: lambda */
public final /* synthetic */ class d implements Runnable {
    public final /* synthetic */ AppCompatActivity a;
    public final /* synthetic */ boolean b;
    public final /* synthetic */ String c;
    public final /* synthetic */ m d;

    public /* synthetic */ d(AppCompatActivity appCompatActivity, boolean z, String str, m mVar) {
        this.a = appCompatActivity;
        this.b = z;
        this.c = str;
        this.d = mVar;
    }

    public final void run() {
        AppCompatActivity appCompatActivity = this.a;
        boolean z = this.b;
        String str = this.c;
        m mVar = this.d;
        if (!h.q(appCompatActivity)) {
            if (z) {
                String absolutePath = new File(r.d, str).getAbsolutePath();
                a aVar = new a(appCompatActivity);
                aVar.e(2131689830);
                aVar.a.f = appCompatActivity.getString(2131689795, new Object[]{absolutePath});
                aVar.d(17039370, null);
                aVar.b(17039361, null);
                aVar.c(2131690352, null);
                f g = aVar.g();
                g.c(-2).setOnClickListener(new e(appCompatActivity, absolutePath));
                g.c(-3).setOnClickListener(new c(appCompatActivity, absolutePath));
                g.setCanceledOnTouchOutside(false);
            } else {
                Toast.makeText(appCompatActivity, 2131689838, 0).show();
            }
            try {
                mVar.m0(false, false);
            } catch (Exception unused) {
            }
        }
    }
}
